package config.knife4j;

/**
 * <p>
 * 编码格式常量类
 * </p>
 *
 * @author Patrick
 * @since 2025-1-1
 */
public class SystemConstant {

    /**
     * Knife4j接口文档接口分组和分组路径
     */
    public static class Knife4j {

        /**
         * 接口分组
         */
        public static final String SECURITY = "权限管理";
        public static final String SYSTEM = "系统管理";

        /**
         * 接口分组路径
         */
        public static final String SECURITY_PATH = "daoyu.controller.security";
        public static final String SYSTEM_PATH = "daoyu.controller.system";
    }

    /**
     * 编码常量
     */
    public static class Charset {

        /**
         * 编码格式设置
         */
        public static final String JSON_TYPE_UTF8_CHARSET = "application/json;charset=UTF-8";

    }

    /**
     * 允许匿名访问的静态资源路径列表
     */
    public static final String[] STATIC_WITHE_PATH_LIST = new String[]{
            "/",
            "/js/**",
            "/css/**",
            "/img/**",
            "/fonts/**",
            "/index.html",
            "/favicon.ico",
            "/doc.html",
            "/swagger-ui.html",
            "/webjars/**",
            "/swagger-resources/**",
            "/v3/**"
    };

    /**
     * 允许匿名访问的静态资源存放位置列表
     */
    public static final String[] STATIC_WITHE_LOCATION_LIST = new String[]{
            "classpath:/static/",
            "classpath:/public/",
            "classpath:/META-INF/resources/"
    };

}


